package com.woniuxy.service;

import com.woniuxy.entity.Contract;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


/**
 * 合同接口
 */
@FeignClient(name = "contract")
public interface ContractService {


    //查询全部合同
    @GetMapping("/contract/allContract")
    public List<Contract> selectAllContract();



    //根据id查询合同
    @GetMapping("/contract/loanContractById/{id_contract}}")
    public  Contract selectContractById(int id_contract);

}
